<%@page import="systems.RecentlyDomain"%>
<%@page import="java.util.List"%>
<%
List<String> domains = RecentlyDomain.getDomains();
String hasAdv = (String) request.getParameter("hasAdv");
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  		
  		<div class="span4 slidebar">
  			<% if (hasAdv == null) { %>
  			<div class="block adv">
  				<script type="text/javascript"><!--
				google_ad_client = "ca-pub-4975603569119809";
				/* traceip_250x250 */
				google_ad_slot = "1926885314";
				google_ad_width = 250;
				google_ad_height = 250;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
  			</div>
  			<br />
  			<% } %>
  			
  			<div class="block">
  				<h5>Recent Domain</h5>
  				<ul class="list clearfix">
  					<% 
  					for (int i = 0; i < domains.size(); i++) { 
  						if (i > 20) break;
  					%>
  					<li><a href="/d/<%=domains.get(i) %>"><%=domains.get(i) %></a></li>
  					<% } %>
	          	</ul>
  			</div>
  		</div>